import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false

App.mpType = 'app'

// main.js
import uView from 'uview-ui';
Vue.use(uView);

//测试域名
Vue.prototype.$Url = 'https://xiaochengxu.feicuivip.com'
Vue.prototype.$ImgUrl = 'https://xiaochengxu.feicuivip.com'

//正式域名
// Vue.prototype.$Url = 'https://fei.feicuikuang.com'
// Vue.prototype.$ImgUrl = 'https://fei.feicuikuang.com'

// 引入im 
import TIM from 'tim-wx-sdk';
import COS from "cos-wx-sdk-v5";

let options = {
	SDKAppID: 1400393281
};
Vue.prototype.$tim = TIM.create(options);
let tim = TIM.create(options);

TIM.create(options).setLogLevel(4); 

// 注册 COS SDK 插件
TIM.create(options).registerPlugin({
	'cos-wx-sdk': COS
});

const app = new Vue({
    ...App
})
app.$mount()
